/*
 * File: FltCodeFig.c
 *
 * Code generated for Fault Code configuration.
 *
 * Genrated author          :Administrator
 * Tool version             :v1.3
 * Source code generated on :29-Dec-2023 09:54:31
 */
#include "FltCodeFig.h"

uint8_T FaultCodeList[FaultCodeMax];/* 故障码列表 */

/*
*32故障码序列码组成
*高16位 ： 放电下高压标志(1)|充电下高压标志(1)|充电功率限制系数(4)|放电功率限制系数(5)|回馈功率限制系数(5)
*低16位 ： 故障码(8)|对外充电故障等级(4)|对外放电故障等级(4)
*充电功率限制系数：精度10% (序列码值10 对应 100%)
*放电功率限制系数：精度5%  (序列码值20 对应 100%)
*回馈功率限制系数：精度5%  (序列码值20 对应 100%)
*/
const uint32_T FaultMgrLev[FaultCodeMax] = 
{
     //1                           2                             3                             4                             5   
    0x02800000|(160U<<8)|CL2|DL2, 0xC0000000|(110U<<8)|CL3|DL3, 0x2A940000|(191U<<8)|CL0|DL1, 0x29540000|(161U<<8)|CL0|DL2, 0xA8140000|(111U<<8)|CL0|DL3, 
     //6                           7                             8                             9                             10  
    0x2A940000|(192U<<8)|CL0|DL1, 0x2A940000|(162U<<8)|CL0|DL2, 0xA8000000|(112U<<8)|CL0|DL3, 0x2A940000|(193U<<8)|CL1|DL0, 0x2A940000|(163U<<8)|CL2|DL0, 
     //11                          12                            13                            14                            15  
    0x42940000|(113U<<8)|CL3|DL0, 0x2A940000|(194U<<8)|CL0|DL1, 0x2A940000|(196U<<8)|CL1|DL1, 0x154A0000|(166U<<8)|CL2|DL2, 0x0CA50000|(116U<<8)|CL3|DL3, 
     //16                          17                            18                            19                            20  
    0x2A940000|(197U<<8)|CL1|DL1, 0x2A940000|(167U<<8)|CL2|DL2, 0x41540000|(117U<<8)|CL3|DL3, 0x42940000|(168U<<8)|CL2|DL0, 0x42940000|(118U<<8)|CL3|DL0, 
     //21                          22                            23                            24                            25  
    0x2A940000|(199U<<8)|CL0|DL1, 0x29540000|(169U<<8)|CL0|DL2, 0xA8140000|(119U<<8)|CL0|DL3, 0x22100000|(200U<<8)|CL1|DL1, 0x2A940000|(201U<<8)|CL0|DL1, 
     //26                          27                            28                            29                            30  
    0x2A940000|(171U<<8)|CL0|DL2, 0x2A940000|(202U<<8)|CL1|DL0, 0x2A940000|(172U<<8)|CL2|DL0, 0x42940000|(122U<<8)|CL3|DL0, 0x2A940000|(203U<<8)|CL0|DL1, 
     //31                          32                            33                            34                            35  
    0x2A940000|(173U<<8)|CL0|DL2, 0xA8140000|(123U<<8)|CL0|DL3, 0x2A940000|(204U<<8)|CL1|DL1, 0x294A0000|(174U<<8)|CL2|DL2, 0xE8000000|(124U<<8)|CL3|DL3, 
     //36                          37                            38                            39                            40  
    0x42940000|(125U<<8)|CL3|DL0, 0x2A940000|(208U<<8)|CL1|DL1, 0x154A0000|(178U<<8)|CL2|DL2, 0xC0000000|(128U<<8)|CL3|DL3, 0x2A940000|(211U<<8)|CL0|DL1, 
     //41                          42                            43                            44                            45  
    0x2A8A0000|(181U<<8)|CL0|DL2, 0xAA800000|(131U<<8)|CL0|DL3, 0x0CA50000|(182U<<8)|CL3|DL3, 0x0CA50000|(183U<<8)|CL3|DL3, 0x0CA50000|(132U<<8)|CL3|DL3, 
     //46                          47                            48                            49                            50  
    0x0CA50000|(184U<<8)|CL3|DL3, 0x42940000|(186U<<8)|CL2|DL0, 0x2A940000|(214U<<8)|CL1|DL1, 0xC0000000|(134U<<8)|CL3|DL3, 0xC0000000|(140U<<8)|CL3|DL3, 
     //51                          52                            53                            54                            55  
    0xC0000000|(149U<<8)|CL3|DL0, 0xC0000000|(155U<<8)|CL3|DL3, 0xC0000000|(156U<<8)|CL3|DL3, 0xC0000000|(158U<<8)|CL3|DL3, 0x00000000|(159U<<8)|CL3|DL3, 
     //56                          57                            58  
    0x2A940000|(135U<<8)|CL1|DL1, 0x2A940000|(130U<<8)|CL1|DL1, 0x2A940000|(136U<<8)|CL1|DL0
};

void FaultCodeSearch(void)
{
  /*Line2 fltm_enum_cellOVFlt 160U CL2 DL2 INRL2*/
  FaultCodeList[0] = (fltm_enum_cellOVFlt!=0)&&(fltm_enum_cellOVFlt==INRL2);

  /*Line3 fltm_enum_cellOVFlt 110U CL3 DL3 INRL3*/
  FaultCodeList[1] = (fltm_enum_cellOVFlt!=0)&&(fltm_enum_cellOVFlt==INRL3);

  /*Line4 fltm_enum_cellUVFlt 191U CL0 DL1 INRL1*/
  FaultCodeList[2] = (fltm_enum_cellUVFlt!=0)&&(fltm_enum_cellUVFlt==INRL1);

  /*Line5 fltm_enum_cellUVFlt 161U CL0 DL2 INRL2*/
  FaultCodeList[3] = (fltm_enum_cellUVFlt!=0)&&(fltm_enum_cellUVFlt==INRL2);

  /*Line6 fltm_enum_cellUVFlt 111U CL0 DL3 INRL3*/
  FaultCodeList[4] = (fltm_enum_cellUVFlt!=0)&&(fltm_enum_cellUVFlt==INRL3);

  /*Line7 fltm_enum_cellOTFlt 192U CL0 DL1 INRL1*/
  FaultCodeList[5] = (fltm_enum_cellOTFlt!=0)&&(fltm_enum_cellOTFlt==INRL1);

  /*Line8 fltm_enum_cellOTFlt 162U CL0 DL2 INRL2*/
  FaultCodeList[6] = (fltm_enum_cellOTFlt!=0)&&(fltm_enum_cellOTFlt==INRL2);

  /*Line9 fltm_enum_cellOTFlt 112U CL0 DL3 INRL3*/
  FaultCodeList[7] = (fltm_enum_cellOTFlt!=0)&&(fltm_enum_cellOTFlt==INRL3);

  /*Line10 fltm_enum_cellOTChgFlt 193U CL1 DL0 INRL1*/
  FaultCodeList[8] = (fltm_enum_cellOTChgFlt!=0)&&(fltm_enum_cellOTChgFlt==INRL1);

  /*Line11 fltm_enum_cellOTChgFlt 163U CL2 DL0 INRL2*/
  FaultCodeList[9] = (fltm_enum_cellOTChgFlt!=0)&&(fltm_enum_cellOTChgFlt==INRL2);

  /*Line12 fltm_enum_cellOTChgFlt 113U CL3 DL0 INRL3*/
  FaultCodeList[10] = (fltm_enum_cellOTChgFlt!=0)&&(fltm_enum_cellOTChgFlt==INRL3);

  /*Line13 fltm_enum_cellUTFlt 194U CL0 DL1 INRL1*/
  FaultCodeList[11] = (fltm_enum_cellUTFlt!=0)&&(fltm_enum_cellUTFlt==INRL1);

  /*Line14 fltm_enum_cellDiffVolFlt 196U CL1 DL1 INRL1*/
  FaultCodeList[12] = (fltm_enum_cellDiffVolFlt!=0)&&(fltm_enum_cellDiffVolFlt==INRL1);

  /*Line15 fltm_enum_cellDiffVolFlt 166U CL2 DL2 INRL2*/
  FaultCodeList[13] = (fltm_enum_cellDiffVolFlt!=0)&&(fltm_enum_cellDiffVolFlt==INRL2);

  /*Line16 fltm_enum_cellDiffVolFlt 116U CL3 DL3 INRL3*/
  FaultCodeList[14] = (fltm_enum_cellDiffVolFlt!=0)&&(fltm_enum_cellDiffVolFlt==INRL3);

  /*Line17 fltm_enum_cellDiffTmpFlt 197U CL1 DL1 INRL1*/
  FaultCodeList[15] = (fltm_enum_cellDiffTmpFlt!=0)&&(fltm_enum_cellDiffTmpFlt==INRL1);

  /*Line18 fltm_enum_cellDiffTmpFlt 167U CL2 DL2 INRL2*/
  FaultCodeList[16] = (fltm_enum_cellDiffTmpFlt!=0)&&(fltm_enum_cellDiffTmpFlt==INRL2);

  /*Line19 fltm_enum_cellDiffTmpFlt 117U CL3 DL3 INRL3*/
  FaultCodeList[17] = (fltm_enum_cellDiffTmpFlt!=0)&&(fltm_enum_cellDiffTmpFlt==INRL3);

  /*Line20 fltm_enum_packOVFlt 168U CL2 DL0 INRL2*/
  FaultCodeList[18] = (fltm_enum_packOVFlt!=0)&&(fltm_enum_packOVFlt==INRL2);

  /*Line21 fltm_enum_packOVFlt 118U CL3 DL0 INRL3*/
  FaultCodeList[19] = (fltm_enum_packOVFlt!=0)&&(fltm_enum_packOVFlt==INRL3);

  /*Line22 fltm_enum_packUVFlt 199U CL0 DL1 INRL1*/
  FaultCodeList[20] = (fltm_enum_packUVFlt!=0)&&(fltm_enum_packUVFlt==INRL1);

  /*Line23 fltm_enum_packUVFlt 169U CL0 DL2 INRL2*/
  FaultCodeList[21] = (fltm_enum_packUVFlt!=0)&&(fltm_enum_packUVFlt==INRL2);

  /*Line24 fltm_enum_packUVFlt 119U CL0 DL3 INRL3*/
  FaultCodeList[22] = (fltm_enum_packUVFlt!=0)&&(fltm_enum_packUVFlt==INRL3);

  /*Line25 fltm_enum_sohU 200U CL1 DL1 INRL1*/
  FaultCodeList[23] = (fltm_enum_sohU!=0)&&(fltm_enum_sohU==INRL1);

  /*Line26 fltm_enum_socU 201U CL0 DL1 INRL1*/
  FaultCodeList[24] = (fltm_enum_socU!=0)&&(fltm_enum_socU==INRL1);

  /*Line27 fltm_enum_socU 171U CL0 DL2 INRL2*/
  FaultCodeList[25] = (fltm_enum_socU!=0)&&(fltm_enum_socU==INRL2);

  /*Line28 fltm_enum_ChgOC 202U CL1 DL0 INRL1*/
  FaultCodeList[26] = (fltm_enum_ChgOC!=0)&&(fltm_enum_ChgOC==INRL1);

  /*Line29 fltm_enum_ChgOC 172U CL2 DL0 INRL2*/
  FaultCodeList[27] = (fltm_enum_ChgOC!=0)&&(fltm_enum_ChgOC==INRL2);

  /*Line30 fltm_enum_ChgOC 122U CL3 DL0 INRL3*/
  FaultCodeList[28] = (fltm_enum_ChgOC!=0)&&(fltm_enum_ChgOC==INRL3);

  /*Line31 fltm_enum_DsgOC 203U CL0 DL1 INRL1*/
  FaultCodeList[29] = (fltm_enum_DsgOC!=0)&&(fltm_enum_DsgOC==INRL1);

  /*Line32 fltm_enum_DsgOC 173U CL0 DL2 INRL2*/
  FaultCodeList[30] = (fltm_enum_DsgOC!=0)&&(fltm_enum_DsgOC==INRL2);

  /*Line33 fltm_enum_DsgOC 123U CL0 DL3 INRL3*/
  FaultCodeList[31] = (fltm_enum_DsgOC!=0)&&(fltm_enum_DsgOC==INRL3);

  /*Line34 fltm_enum_insuU 204U CL1 DL1 INRL1*/
  FaultCodeList[32] = (fltm_enum_insuU!=0)&&(fltm_enum_insuU==INRL1);

  /*Line35 fltm_enum_insuU 174U CL2 DL2 INRL2*/
  FaultCodeList[33] = (fltm_enum_insuU!=0)&&(fltm_enum_insuU==INRL2);

  /*Line36 fltm_enum_insuU 124U CL3 DL3 INRL3*/
  FaultCodeList[34] = (fltm_enum_insuU!=0)&&(fltm_enum_insuU==INRL3);

  /*Line37 fltm_enum_chgPlugOT 125U CL3 DL0 INRL3*/
  FaultCodeList[35] = (fltm_enum_chgPlugOT!=0)&&(fltm_enum_chgPlugOT==INRL3);

  /*Line38 fltm_enum_BMSHwCircuit 208U CL1 DL1 INRL1*/
  FaultCodeList[36] = (fltm_enum_BMSHwCircuit!=0)&&(fltm_enum_BMSHwCircuit==INRL1);

  /*Line39 fltm_enum_BMSHwCircuit 178U CL2 DL2 INRL2*/
  FaultCodeList[37] = (fltm_enum_BMSHwCircuit!=0)&&(fltm_enum_BMSHwCircuit==INRL2);

  /*Line40 fltm_enum_BMSHwCircuit 128U CL3 DL3 INRL3*/
  FaultCodeList[38] = (fltm_enum_BMSHwCircuit!=0)&&(fltm_enum_BMSHwCircuit==INRL3);

  /*Line41 fltm_enum_BackOC 211U CL0 DL1 INRL1*/
  FaultCodeList[39] = (fltm_enum_BackOC!=0)&&(fltm_enum_BackOC==INRL1);

  /*Line42 fltm_enum_BackOC 181U CL0 DL2 INRL2*/
  FaultCodeList[40] = (fltm_enum_BackOC!=0)&&(fltm_enum_BackOC==INRL2);

  /*Line43 fltm_enum_BackOC 131U CL0 DL3 INRL3*/
  FaultCodeList[41] = (fltm_enum_BackOC!=0)&&(fltm_enum_BackOC==INRL3);

  /*Line44 fltm_enum_CellVolSmpFlt 182U CL3 DL3 INRL3*/
  FaultCodeList[42] = (fltm_enum_CellVolSmpFlt!=0)&&(fltm_enum_CellVolSmpFlt==INRL3);

  /*Line45 fltm_enum_CurrSmpAbnl 183U CL3 DL3 INRL3*/
  FaultCodeList[43] = (fltm_enum_CurrSmpAbnl!=0)&&(fltm_enum_CurrSmpAbnl==INRL3);

  /*Line46 fltm_enum_PackVolSmpFlt 132U CL3 DL3 INRL3*/
  FaultCodeList[44] = (fltm_enum_PackVolSmpFlt!=0)&&(fltm_enum_PackVolSmpFlt==INRL3);

  /*Line47 fltm_enum_CellTmpSmpFlt 184U CL3 DL3 INRL3*/
  FaultCodeList[45] = (fltm_enum_CellTmpSmpFlt!=0)&&(fltm_enum_CellTmpSmpFlt==INRL3);

  /*Line48 fltm_enum_PTCHeatInvalid 186U CL2 DL0 INRL2*/
  FaultCodeList[46] = (fltm_enum_PTCHeatInvalid!=0)&&(fltm_enum_PTCHeatInvalid==INRL2);

  /*Line49 fltm_enum_socJump 214U CL1 DL1 INRL1*/
  FaultCodeList[47] = (fltm_enum_socJump!=0)&&(fltm_enum_socJump==INRL1);

  /*Line50 fltm_enum_posRlyAd 134U CL3 DL3 INRL3*/
  FaultCodeList[48] = (fltm_enum_posRlyAd!=0)&&(fltm_enum_posRlyAd==INRL3);

  /*Line51 fltm_enum_preRlyAd 140U CL3 DL3 INRL3*/
  FaultCodeList[49] = (fltm_enum_preRlyAd!=0)&&(fltm_enum_preRlyAd==INRL3);

  /*Line52 fltm_enum_ptcAdFlt 149U CL3 DL0 INRL3*/
  FaultCodeList[50] = (fltm_enum_ptcAdFlt!=0)&&(fltm_enum_ptcAdFlt==INRL3);

  /*Line53 fltm_enum_ThermRunaway 155U CL3 DL3 INRL3*/
  FaultCodeList[51] = (fltm_enum_ThermRunaway!=0)&&(fltm_enum_ThermRunaway==INRL3);

  /*Line54 fltm_enum_PreFail 156U CL3 DL3 INRL3*/
  FaultCodeList[52] = (fltm_enum_PreFail!=0)&&(fltm_enum_PreFail==INRL3);

  /*Line55 fltm_enum_hvilFlt 158U CL3 DL3 INRL3*/
  FaultCodeList[53] = (fltm_enum_hvilFlt!=0)&&(fltm_enum_hvilFlt==INRL3);

  /*Line56 fltm_enum_v12Flt 159U CL3 DL3 INRL3*/
  FaultCodeList[54] = (fltm_enum_v12Flt!=0)&&(fltm_enum_v12Flt==INRL3);

  /*Line57 fltm_enum_CANBusOff 135U CL1 DL1 INRL1*/
  FaultCodeList[55] = (fltm_enum_CANBusOff!=0)&&(fltm_enum_CANBusOff==INRL1);

  /*Line58 fltm_enum_vcuComFlt 130U CL1 DL1 INRL1*/
  FaultCodeList[56] = (fltm_enum_vcuComFlt!=0)&&(fltm_enum_vcuComFlt==INRL1);

  /*Line59 fltm_enum_obcComFlt 136U CL1 DL0 INRL1*/
  FaultCodeList[57] = (fltm_enum_obcComFlt!=0)&&(fltm_enum_obcComFlt==INRL1);

}



/* File trailer for generated code.*/